package main

import (
	"fmt"
	"github.com/BurntSushi/toml"
)

var test struct {
	TestField map[string]interface{}
}

var testToml = `
[TestField]
Number = 123
Key = "value"
`

func main() {
	_, err := toml.Decode(testToml, &test)
	if err != nil {
		panic(err.Error())
	}
	fmt.Println(test.TestField["Number"].(int64))
	fmt.Println(test.TestField["Key"].(string))
}